package org.jeecg.controller;

import org.apache.ibatis.annotations.Param;
import org.jeecg.domain.dto.AgencyDto;
import org.jeecg.domain.dto.ResponseResult;
import org.jeecg.domain.vo.AgencyVo;
import org.jeecg.service.AgencyCertificationService;
import org.jeecg.service.CommonUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("agency")
public class AgencyCertificationController {
    @Autowired
    private AgencyCertificationService agencyCertificationService;
    @GetMapping("listagency")
    public ResponseResult listagency(AgencyDto agencyDto){
        return agencyCertificationService.listagency(agencyDto);
    }
    @Autowired
    private CommonUserService commonUserService;
    //修改状态禁用开启
    @PostMapping("updatestauts")
    public ResponseResult updatestauts(@Param("id") Long id){
        System.out.println(id);
        return ResponseResult.okResult(commonUserService.updatestauts(id));
    }
}
